package com.toocms.jinjuhang.ui.mine.order.evaluate

import com.toocms.jinjuhang.R
import com.toocms.jinjuhang.BR
import com.toocms.jinjuhang.databinding.FgtOrderEvaluateResultBinding
import com.toocms.jinjuhang.ui.base.BaseFgt
import com.toocms.tab.TooCMSApplication

class OrderEvaluateResultFgt : BaseFgt<FgtOrderEvaluateResultBinding, OrderEvaluateResultModel>() {
    override fun onFragmentCreated() {
        topBar.setTitle(R.string.str_evaluate_succeed)
    }

    override fun getLayoutResId() = R.layout.fgt_order_evaluate_result

    override fun getVariableId() = BR.orderEvaluateResultModel

    override fun viewObserver() {
        viewModel.stopLoadSingleLiveEvent.observe(this) {
            binding.refreshSrl.finishLoadMore()
        }
    }

    override fun getViewModel() =
        OrderEvaluateResultModel(TooCMSApplication.getInstance(), arguments)
}